﻿using ReflectionStudio.Classes;
using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
using System.Data;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Input;

namespace WPFExcelReport
{

    public partial class MetroViewModel : ViewModelBase
    {
        //    <ResourceDictionary Source="pack://application:,,,/ReflectionStudio.Controls;component/Resources/Controls/TabControl.xaml"/>
                //<ResourceDictionary Source="pack://application:,,,/ReflectionStudio.Controls;component/Resources/Controls/MetroChart.xaml"/>
        public VICC_MENUDEF menu;
        private DocumentFactory docs
        {
            get
            {
                return DocumentFactory.Instance;
            }
        }
        private bool _IsIntexReportClient; public bool IsIntexReportClient { get { return _IsIntexReportClient; } set { _IsIntexReportClient = value; OnPropertyChanged("IsIntexReportClient", value); } }
        private bool _IsTST; public bool IsTST { get { return _IsTST; } set { _IsTST = value; OnPropertyChanged("IsTST", value); } }
        private bool _IsTS; public bool IsTS { get { return _IsTS; } set { _IsTS = value; OnPropertyChanged("IsTS", value); } }

        private bool _IsLogOn;
        public bool IsLogOn
        {
            get { return _IsLogOn; }
            set
            {
                _IsLogOn = value;
                OnPropertyChanged("IsLogOn", value);
            }
        }


        private bool _NeedLogOn;
        public bool NeedLogOn
        {
            get { return _NeedLogOn; }
            set
            {
                _NeedLogOn = value;
                OnPropertyChanged("NeedLogOn", value);
            }
        }
        private bool _IsShowLog;
        public bool IsShowLog
        {
            get { return _IsShowLog; }
            set
            {
                _IsShowLog = value;
                OnPropertyChanged("IsShowLog", value);
            }
        }
        
        public MetroViewModel()
            : base()
        {
            menu = new VICC_MENUDEF();
            SetEnv = new DataSet();
            SetData = new DataSet();
            SetProd = new DataSet();
            IsTST = false;
            switch (app.company)
            {
                case "TST":
                    app.AppMode = "TISSUE";
                    IsTS = true;
                    IsTST = true;
                    app.WAEHRSL = "RMB";
                    break;
                default:
                    app.AppMode = app.company;
                    app.WAEHRSL = "RMB";
                    break;
            } 
        }
    }
}
